package com.xyzwps.benchmarks.json;

import com.alibaba.fastjson.JSON;

public class FastJsonUtils implements JsonUtils {
    @Override
    public String stringify(Object obj) {
        return JSON.toJSONString(obj);
    }

    @Override
    public <T> T parse(String s, Class<T> c) {
        return JSON.parseObject(s, c);
    }

    public static final FastJsonUtils INSTANCE = new FastJsonUtils();
}
